package com.example.data.factory.entity.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author lhy
 * @since 2025-03-03
 */
@Getter
@Setter
@ApiModel(value = "Classify对象", description = "")
public class Classify implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("接口分类主键，自动递增")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("接口分类名称")
    private String name;

    @ApiModelProperty("层级")
    private Integer level;

    @ApiModelProperty("父级id")
    private Integer parentId;

    @ApiModelProperty("分类目录行为（interface：接口，asset：数据资产，script：脚本，task：任务）")
    private String type;

    @ApiModelProperty("创建人")
    private String createBy;

    private Byte deleted;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;
    // 子分类列表
    @TableField(exist = false)
    private List<Classify> children;

}
